{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 日志相关概念\n",
    "- 日志\n",
    "    - 日志级别\n",
    "        - DEBUG\n",
    "        - INFO\n",
    "        - NOTICE\n",
    "        - WARNING\n",
    "        - ERROR\n",
    "        - CRITICAL\n",
    "        - ALERT\n",
    "        - EMERGENCY\n",
    "- IO操作不要太频繁\n",
    "- LOG的作用\n",
    "    - 调试\n",
    "    - 了解软件的运行情况\n",
    "    - 分析定位问题\n",
    "## logging模块\n",
    "- 初始化/写日志实例需要指定级别，只有当级别等于或高于指定级别时才被记录\n",
    "- 使用方式：\n",
    "    - 直接logging（）\n",
    "    - logging.debug(msg, *args, **kwargs) 创建一个严重级别为debug级别的日志。。。。。\n",
    "    - logging.log(level, *args, **kwargs) 创建一个严重级别为level的日志记录"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
